<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css"
	href="lib/bootstrap/css/bootstrap.css">

<link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
<link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">

<script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function doDelete(id){
         if (!confirm("确认要删除？")) {
                 return false;
               }
             window.location.href = "<%=path%>/deleteAdmin?id=" + id;
	}
</script>
<!-- Demo page code -->

<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
	<!--<![endif]-->

	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">
                    
                    <li><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">Settings</a></li>
                    <li id="fat-menu" class="dropdown">
                        <a href="getUserById_new" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> ${backuser.userName}
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="getUserById_new">个人信息</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li>
                            <li class="divider visible-phone"></li>
                            <li><a tabindex="-1" href="<%=path %>/page/front/userLogin.jsp">退出</a></li>
                        </ul>
                    </li>
                    
                </ul>
                <a class="brand" href="index.html"><span class="first">在线考试</span> <span class="second">系统</span></a>
		</div>
	</div>

	<!--  <div class="sidebar-nav">
		<a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i
			class="icon-dashboard"></i>用户在线考试</a>
		<ul id="dashboard-menu" class="nav nav-list collapse in">
			<li><a href="index.html">用户列表</a></li>
		</ul>
	</div> -->
	
	<div class="content" style="margin-left: 0px;">

		<div class="header">
			<a href="getUserById_new"><h1 class="page-title">${backuser.userName}个人信息</h1></a>
		</div>

		<ul class="breadcrumb">
			<li><a>个人试卷</a> <span class="divider">/</span></li>
			<li class="active">试卷列表</li>
		</ul>

		<!-- <div class="container-fluid"> -->
			<div class="row-fluid">

				<div class="btn-toolbar">
					<%-- <a href="<%=path%>/page/admin/adminEdit.jsp"
						<button class="btn btn-primary">
						<i class="icon-plus"></i> 新增试卷
					</button></a> --%>
					<form action="getPaperName_new" method="post">
					     <div style="float:right;margin-top:25px;margin-right:20px;"> 根据试卷类型进行查找<!-- <input type="text" name="paperCondition.type"> --> 
					     		<s:action namespace="/" executeResult="true" name="getAllPaperType" var="type"/>
							     <select name="paperCondition.type">
							         <option value="">--请选择--</option>
								     <s:iterator value="#type.paperTypeList" var="type">
								       <option value="<s:property value="type"/>"><s:property value="type"/></option>
								       </option>
								    </s:iterator>
							    </select> 
								<button class="btn" type="submit" style="margin-top:-10px">查询</button>
					     </div> 
					</form>
					<div class="btn-group"></div>
				</div>
				<div class="well" >
					<table class="table" style="margin-top:-20px;">
						
						<tbody>
							<s:iterator value="paperNameList">
								<tr>
									<td width="35%">试卷名称：<s:property value="paperName" /></td>
									<td width="25%"><span> 试卷时间：<s:property value="paperTime" />分钟
									</span></td>
									<td width="15%">类型：<s:property value="paperType" /></td>
									<td>
									<%-- <a href="getPaperList_new?paper_id=<s:property value='paperId'/>">
											 <button class="btn btn-primary">
												<i class="icon-save"></i> 查看试题
											</button>
									</a> --%>
									<a href="onlineExamAction_new?paper_id=<s:property value='paperId'/>">		
											<button class="btn btn-primary" style="margin-left:50px;">
												<i class="icon-save"></i> 开始做答
											</button>
									</a>		
								 </td>
									<br>
									
							</s:iterator>

						</tbody>
					</table>

				</div>
				<%-- <div class="pagination">
					<ul>
						<!--  style="margin-left:350px;" -->
						<li><a href="adminList?currentPage=1"
							style="margin-left:550px;">首页</a></li>
						<li><a href="adminList?currentPage=${currentPage-1}">上一页</a></li>
						<li><a href="adminList?currentPage=${currentPage+1}">下一页</a></li>
						<li><a href="adminList?currentPage=${totalPage}">尾页</a></li>
					</ul>
					<div style="height:40px;line-height:40px; width:100px;float:right;">
						当前页:<span style="color:red">${currentPage}</span>/${totalPage}
					</div>

				</div> --%>

				<div class="modal small hide fade" id="myModal" tabindex="-1"
					role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">×</button>
						<h3 id="myModalLabel">Delete Confirmation</h3>
					</div>
					<div class="modal-body">
						<p class="error-text">
							<i class="icon-warning-sign modal-icon"></i>Are you sure you want
							to delete the user?
						</p>
					</div>
					<div class="modal-footer">
						<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
						<a href="deleteAdmin.action?id=<s:property value='adminId'/>"><button
								class="btn btn-danger">Delete</button></a>
					</div>
				</div>



				<footer>
				<hr>


				<p class="pull-right">
					Collect from <a href="http://www.cssmoban.com/" title="网页模板"
						target="_blank">网页模板</a>
				</p>

				<p>
					&copy; 2012 <a href="#" target="_blank">Portnine</a>
				</p>
				</footer>

			</div>
		</div>
	</div>



	<script src="lib/bootstrap/js/bootstrap.js"></script>
	<script type="text/javascript">
		$("[rel=tooltip]").tooltip();
		$(function() {
			$('.demo-cancel-click').click(function() {
				return false;
			});
		});
	</script>

</body>
</html>
